package com.sxg.convert;

import com.sxg.entity.SxgOrderItemEntity;
import com.sxg.vo.SxgOrderItemVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
* 订单商品表
*
* @author 浪漫写尽歌谱 3298751420@qq.com
* @since 1.0.0 2024-03-07
*/
@Mapper
public interface SxgOrderItemConvert {
    SxgOrderItemConvert INSTANCE = Mappers.getMapper(SxgOrderItemConvert.class);

    SxgOrderItemEntity convert(SxgOrderItemVO vo);

    SxgOrderItemVO convert(SxgOrderItemEntity entity);

    List<SxgOrderItemVO> convertList(List<SxgOrderItemEntity> list);

}